<?php
/**
 * ECSHOP 广告管理程序
 * ============================================================================
 * * 版权所有 2005-2012 上海商派网络科技有限公司，并保留所有权利。
 * 网站地址: http://www.ecshop.com；
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 * $Author: liubo $
 * $Id: fenxiao.php 17217 2011-01-19 06:29:08Z liubo $
 */
define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');
/* act操作项的初始化 */
if (empty($_REQUEST['act']))
{
    $_REQUEST['act'] = 'list';
}
else
{
    $_REQUEST['act'] = trim($_REQUEST['act']);
}

if ($_REQUEST['act'] == 'all')
{
    $smarty->assign('ur_here',   $_LANG['03_fenxiao_all']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'province'){
    $smarty->assign('ur_here',     $_LANG['04_fenxiao_province']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'area'){
    $smarty->assign('ur_here',     $_LANG['05_fenxiao_area']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'shopowner'){
    $smarty->assign('ur_here',     $_LANG['06_fenxiao_shopowner']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'member'){
    $smarty->assign('ur_here',     $_LANG['07_fenxiao_member']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'supplier'){
    $smarty->assign('ur_here',     $_LANG['08_fenxiao_supplier']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}
elseif($_REQUEST['act'] == 'other'){
    $smarty->assign('ur_here',     $_LANG['09_fenxiao_other']);
    $smarty->assign('action_link', array('text' => $_LANG['ads_add'], 'href' => 'ads.php?act=add'));
    $smarty->assign('full_page',  1);
    $smarty->display('fenxiao_list.htm');
}

else
{
    $_REQUEST['act'] = trim($_REQUEST['act']);
}

?>